#include <stdio.h>
#include <stdlib.h>

int main(void)
{

	FILE *file=NULL;
        if((file=fopen("hello.txt","r"))==NULL){

	printf("文件打开失败\n");
        exit(1);
	}	

	char str1[10];
	char str2[10];
	char *str3;
	fscanf(file,"%s",str1);
	fscanf(file,"%s",str2);
	fscanf(file,"%s",str3);
	printf("%s\n",str1);
	printf("%s\n",str2);
	printf("%s\n",str3);
	fclose(file);
	return 0;

}
